cmake_minimum_required(VERSION 2.8)

project(logistic)

set(CMMAKE_BUILD_TYPE Realease)
set(CMAKE_CXX_FLAGS "-std=c++14 -O3")

list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)

find_package(OpenCV REQUIRED)
include_directories(${OpenCV_INCLUDE_DIRS})

find_package(Ceres REQUIRED)
include_directories(${CERES_INCLUDE_DIRS})

include_directories("/usr/include/eigen3")

add_executable(logistc logistic.cpp)
target_link_libraries(logistc ${OpenCV_LIBS} ${CERES_LIBRARIES})

add_executable(logsitc3 tmp.cpp)
target_link_libraries(logsitc3 ${OpenCV_LIBS} ${CERES_LIBRARIES})